package com.wzz.controller;

import com.wzz.pojo.BugProject;
import com.wzz.service.BugProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api")
public class BugProjectController {

    @Autowired
    private BugProjectService bugProjectService;

    @PostMapping("getAllBugProject")
    public List<BugProject> getAllBugProject(){
        return bugProjectService.getAllBugProject();
    }
}
